<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Hepatocellular Carcinoma Structured Report</title>
    <link rel="stylesheet" href="styles.css">
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 20px;
        }
        .form-section {
            margin-bottom: 20px;
        }
        .radio-group {
            margin-left: 20px;
        }
        .sub-options {
            margin-left: 40px;
        }
    </style>
</head>
<body>
    <section id="procedureInformation" class="level1" data-section-name="Procedure Information">
        <header class="level1" style="font-size: 24px; font-weight: bold;">一、临床评估</header>
        <div class="form-section">
            <fieldset>
                <legend>最近一次治疗方法</legend>
                <div class="radio-group">
                    <input id="RADIO_1626100865748_0" type="radio" name="treatmentMethod" value="非放射性局部治疗" checked>
                    <label for="RADIO_1626100865748_0">非放射性局部治疗</label>
                    <br>
                    <input id="RADIO_1626100865748_1" type="radio" name="treatmentMethod" value="放射性局部治疗">
                    <label for="RADIO_1626100865748_1">放射性局部治疗</label>
                </div>
            </fieldset>

            <!-- 非放射性局部治疗选项 -->
            <div id="nonRadiationOptions" class="sub-options" style="display: block;">
                <fieldset>
                    <legend id="nonRadiationLabel">请选择具体方法</legend>
                    <div class="radio-group">
                        <input type="radio" id="nonRad1" name="nonRadiation" value="射频消融（RFA）">
                        <label for="nonRad1">射频消融（RFA）</label><br>
                        <input type="radio" id="nonRad2" name="nonRadiation" value="微波消融（MWA）">
                        <label for="nonRad2">微波消融（MWA）</label><br>
                        <input type="radio" id="nonRad3" name="nonRadiation" value="冷冻消融">
                        <label for="nonRad3">冷冻消融</label><br>
                        <input type="radio" id="nonRad4" name="nonRadiation" value="经皮乙醇注射（PEA）">
                        <label for="nonRad4">经皮乙醇注射（PEA）</label><br>
                        <input type="radio" id="nonRad5" name="nonRadiation" value="经动脉栓塞术（TAE）">
                        <label for="nonRad5">经动脉栓塞术（TAE）</label>
                    </div>
                </fieldset>
            </div>

            <!-- 放射性局部治疗选项 -->
            <div id="radiationOptions" class="sub-options" style="display: none;">
                <fieldset>
                    <legend id="radiationLabel">请选择具体方法</legend>
                    <div class="radio-group">
                        <input type="radio" id="rad1" name="radiation" value="传统经动脉化疗栓塞术（TARE）">
                        <label for="rad1">传统经动脉化疗栓塞术（TARE）</label><br>
                        <input type="radio" id="rad2" name="radiation" value="立体定向放射治疗（SBRT）">
                        <label for="rad2">立体定向放射治疗（SBRT）</label>
                    </div>
                </fieldset>
            </div>
        </div>

        <div class="form-section">
            <fieldset>
                <legend>最近一次治疗时间</legend>
                <div class="radio-group">
                    <input id="RADIO_1626100865748_2" type="radio" name="treatmentDateChoice" value="确定时间" checked>
                    <label for="RADIO_1626100865748_2">确定时间</label><br>
                    <input id="RADIO_1626100865748_3" type="radio" name="treatmentDateChoice" value="不确定">
                    <label for="RADIO_1626100865748_3">不确定</label>
                </div>
            </fieldset>

            <!-- 确定时间选项 -->
            <div id="dateOptions" class="sub-options" style="display: block;">
                <label for="treatmentDate">请选择治疗日期：</label>
                <input type="date" id="treatmentDate" name="treatmentDate">
            </div>
        </div>
    </section>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const treatmentMethodForm = document.querySelector('.form-section');
            const nonRadiationOptions = document.getElementById('nonRadiationOptions');
            const radiationOptions = document.getElementById('radiationOptions');
            const dateOptions = document.getElementById('dateOptions');

            // 控制治疗方法的显示/隐藏
            treatmentMethodForm.addEventListener('change', function(e) {
                if (e.target.name === 'treatmentMethod') {
                    const showNonRad = e.target.value === '非放射性局部治疗';
                    nonRadiationOptions.style.display = showNonRad ? 'block' : 'none';
                    radiationOptions.style.display = showNonRad ? 'none' : 'block';
                }

                if (e.target.name === 'treatmentDateChoice') {
                    const showDate = e.target.value === '确定时间';
                    dateOptions.style.display = showDate ? 'block' : 'none';
                }
            });

            // 初始化显示状态
            const initialTreatmentMethod = document.querySelector('input[name="treatmentMethod"]:checked');
            if (initialTreatmentMethod) {
                nonRadiationOptions.style.display = initialTreatmentMethod.value === '非放射性局部治疗' ? 'block' : 'none';
                radiationOptions.style.display = initialTreatmentMethod.value === '非放射性局部治疗' ? 'none' : 'block';
            }

            const initialDateChoice = document.querySelector('input[name="treatmentDateChoice"]:checked');
            if (initialDateChoice) {
                dateOptions.style.display = initialDateChoice.value === '确定时间' ? 'block' : 'none';
            }
        });
    </script>
</body>
</html>

          <section id="procedureInformation" class="level1" data-section-name="Procedure Information">
                    <header class="level1" style="font-size: 24px; font-weight: bold;">二、技术评估</header>
                      
 <!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>检查方式选择</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 20px;
        }
        .radio-group {
            margin-left: 20px;
        }
        .sub-options {
            margin-left: 40px;
            display: none;
        }
    </style>
</head>
<body>
    <fieldset>
        <legend>检查</legend>
        <div class="radio-group">
            <input id="MR" type="radio" name="check" value="MR">
            <label for="MR">MR增强</label>
        </div>
    </fieldset>

    <div id="mrOptions" class="sub-options">
        <input type="radio" id="extracellular" name="contrast" value="细胞外对比剂">
        <label for="extracellular">细胞外对比剂</label>
        <br>
        <input type="radio" id="liverSpecific" name="contrast" value="肝特异性对比剂">
        <label for="liverSpecific">肝特异性对比剂</label>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const mrOptions = document.getElementById('mrOptions');
            const mrRadio = document.getElementById('MR');

            mrRadio.addEventListener('change', function() {
                mrOptions.style.display = mrRadio.checked ? 'block' : 'none';
            });
        });
    </script>
</body>
</html>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图像质量评价</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 20px;
        }
        .form-section {
            margin-bottom: 20px;
        }
        .radio-group,
        .checkbox-group {
            margin-left: 20px;
        }
        .sub-options {
            margin-left: 40px;
        }
        .text-area {
            margin-left: 40px;
            width: 300px;
            height: 100px;
        }
    </style>
</head>
<body>
    <div class="form-section">
        <fieldset>
            <legend>图像质量评价</legend>
            <div class="radio-group">
                <input id="good" type="radio" name="imageQuality" value="良好" checked>
                <label for="good">良好</label>
                <br>
                <input id="poor" type="radio" name="imageQuality" value="不佳">
                <label for="poor">不佳</label>
            </div>
        </fieldset>

        <!-- 不佳选项 -->
        <div id="poorOptions" class="sub-options" style="display: none;">
            <div class="checkbox-group">
                <input type="checkbox" id="respiratory" name="artifact" value="呼吸运动伪影">
                <label for="respiratory">呼吸运动伪影</label>
                <br>
                <input type="checkbox" id="dceError" name="artifact" value="DCE时相错误">
                <label for="dceError">DCE时相错误</label>
                <br>
                <input type="checkbox" id="dwiDistortion" name="artifact" value="DWI变形伪影">
                <label for="dwiDistortion">DWI变形伪影</label>
                <br>
                <input type="checkbox" id="dwiSNR" name="artifact" value="DWI信噪比差">
                <label for="dwiSNR">DWI信噪比差</label>
                <br>
                <input type="checkbox" id="scanRange" name="artifact" value="扫描范围不足">
                <label for="scanRange">扫描范围不足</label>
                <br>
                <input type="checkbox" id="other" name="artifact" value="其他图像质量不良记录">
                <label for="other">其他图像质量不良记录</label>
            </div>

            <!-- DCE时相错误选项 -->
            <div id="dceOptions" class="sub-options" style="display: none;">
                <div class="radio-group">
                    <input type="radio" id="arterial" name="dcePhase" value="动脉期">
                    <label for="arterial">动脉期</label>
                    <br>
                    <input type="radio" id="portal" name="dcePhase" value="门脉期">
                    <label for="portal">门脉期</label>
                    <br>
                    <input type="radio" id="delayed" name="dcePhase" value="延迟期">
                    <label for="delayed">延迟期</label>
                </div>
            </div>

            <!-- 其他图像质量不良记录 -->
            <div id="otherDetails" class="sub-options" style="display: none;">
                <label for="otherDetailsInput">请描述具体情况：</label>
                <textarea id="otherDetailsInput" name="otherDetails" class="text-area"></textarea>
            </div>
        </div>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const poorRadio = document.getElementById('poor');
            const poorOptions = document.getElementById('poorOptions');
            const dceErrorCheckbox = document.getElementById('dceError');
            const dceOptions = document.getElementById('dceOptions');
            const otherCheckbox = document.getElementById('other');
            const otherDetails = document.getElementById('otherDetails');

            // 监听“不佳”单选框的变化
            poorRadio.addEventListener('change', function() {
                poorOptions.style.display = poorRadio.checked ? 'block' : 'none';
            });

            // 监听“DCE时相错误”复选框的变化
            dceErrorCheckbox.addEventListener('change', function() {
                dceOptions.style.display = dceErrorCheckbox.checked ? 'block' : 'none';
            });

            // 监听“其他图像质量不良记录”复选框的变化
            otherCheckbox.addEventListener('change', function() {
                otherDetails.style.display = otherCheckbox.checked ? 'block' : 'none';
            });
        });
    </script>
</body>
</html>
 <section id="procedureInformation" class="level1" data-section-name="Procedure Information">
                    <header class="level1" style="font-size: 24px; font-weight: bold;">三、影像评估</header>
                      
<section id="procedureInformation" class="level1" data-section-name="Procedure Information">
                    <header class="level1">
                      肝内靶病灶评估
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>靶病灶序号输入</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      margin: 20px;
    }
    .form-section {
      margin-bottom: 20px;
    }
    input[type="number"] {
      padding: 5px;
      font-size: 14px;
      width: 100px;
      margin-right: 10px;
    }
    button {
      padding: 5px 10px;
      font-size: 14px;
      margin-right: 5px;
    }
    #result {
      margin-top: 20px;
      font-weight: bold;
    }
  </style>
</head>
<body>
  <div class="form-section">
    <label for="lesionInput">请输入靶病灶序号：</label>
    <input type="number" id="lesionInput" min="1" placeholder="例如：1">
    <button id="submitBtn">确定</button>
    <button id="deleteBtn">删除</button>
  </div>
  <div id="result"></div>
  
  <script>
    document.getElementById('submitBtn').addEventListener('click', function() {
      var num = document.getElementById('lesionInput').value;
      if(num !== "" && !isNaN(num)) {
        document.getElementById('result').textContent = "靶病灶" + num;
      } else {
        document.getElementById('result').textContent = "请输入有效的序号";
      }
    });
    
    document.getElementById('deleteBtn').addEventListener('click', function() {
      document.getElementById('result').textContent = "";
      document.getElementById('lesionInput').value = "";
    });
  </script>
</body>
</html>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <title>选择位置及指标</title>
  <style>
    body { font-family: Arial, sans-serif; margin: 20px; }
    .checkbox-group label { margin-right: 10px; }
    .error { color: red; margin-top: 10px; }
  </style>
</head>
<body>
  <h2>请选择位置 (可多选 S1 ~ S8):</h2>
  <form id="positionForm">
    <div class="checkbox-group">
      <label><input type="checkbox" name="position" value="S1"> S1</label>
      <label><input type="checkbox" name="position" value="S2"> S2</label>
      <label><input type="checkbox" name="position" value="S3"> S3</label>
      <label><input type="checkbox" name="position" value="S4"> S4</label>
      <label><input type="checkbox" name="position" value="S5"> S5</label>
      <label><input type="checkbox" name="position" value="S6"> S6</label>
      <label><input type="checkbox" name="position" value="S7"> S7</label>
      <label><input type="checkbox" name="position" value="S8"> S8</label>
    </div>
    <br>
    <div>
      <label>SE: <input type="text" id="se" placeholder="请输入SE" /></label>
    </div>
    <br>
    <div>
      <label>IM: <input type="text" id="im" placeholder="请输入IM" /></label>
    </div>
    <br>
  </form>

  <div class="error" id="error-message"></div>

  <script>
    // 自动调用输入验证
    document.getElementById("positionForm").addEventListener("change", function() {
      // 清除之前的错误信息
      document.getElementById("error-message").innerHTML = "";

      // 获取所有被选中的位置
      const checkboxes = document.querySelectorAll('input[name="position"]:checked');
      const positions = Array.from(checkboxes).map(cb => cb.value);

      // 获取SE和IM输入值
      const se = document.getElementById("se").value.trim();
      const im = document.getElementById("im").value.trim();

      // 检查是否至少选择了一个位置
      if (positions.length === 0) {
        document.getElementById("error-message").innerHTML = "请至少选择一个位置！";
        return;
      }

      // 检查是否输入了SE和IM值
      if (se === "" || im === "") {
        document.getElementById("error-message").innerHTML = "请填写SE和IM的值！";
        return;
      }
    });
  </script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>团块样强化选择</title>
  <style>
    body { font-family: Arial, sans-serif; margin: 20px; }
    .radio-group label { margin-right: 15px; }
  </style>
</head>
<body>
  <h2>存活的主要征象：团块样强化</h2>
  <form id="enhancementForm">
    <div class="radio-group">
      <label><input type="radio" name="enhancement" value="无"> 无</label>
      <label><input type="radio" name="enhancement" value="不确定"> 不确定</label>
      <label><input type="radio" name="enhancement" value="有"> 有</label>
      <label><input type="radio" name="enhancement" value="无法评估"> 无法评估</label>
    </div>
  </form>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>存活病灶影像特征</title>
  <style>
    body { font-family: Arial, sans-serif; margin: 20px; }
    .section { margin-bottom: 20px; }
    .section label { display: block; margin-top: 10px; }
    .input-wrapper { display: flex; align-items: center; }
    .input-wrapper input { width: 100px; }
    .input-wrapper span { margin-left: 5px; }
  </style>
</head>
<body>
  <h2>存活病灶的影像特征</h2>

  <!-- 位置板块 -->
  <div class="section">
    <h3>位置</h3>
    <label for="se">SE：</label>
    <input type="text" id="se" name="se" placeholder="请输入SE">
    <br>
    <label for="im">IM：</label>
    <input type="text" id="im" name="im" placeholder="请输入IM">
  </div>

  <!-- 形态板块 -->
  <div class="section">
    <h3>形态</h3>
    <label><input type="radio" name="morphology" value="结节状强化"> 结节状强化</label>
    <label><input type="radio" name="morphology" value="不规则外周样强化"> 不规则外周样强化</label>
    <label><input type="radio" name="morphology" value="厚环状强化"> 厚环状强化</label>
  </div>

  <!-- 大小板块 -->
  <div class="section">
    <h3>大小</h3>
    <div class="input-wrapper">
      <label for="maxDiameter">最大径：</label>
      <input type="number" id="maxDiameter" name="maxDiameter" placeholder="请输入最大径">
      <span>mm</span>
    </div>
    <br>
    <div class="input-wrapper">
      <label for="minDiameter">与最大径垂直的短径：</label>
      <input type="number" id="minDiameter" name="minDiameter" placeholder="请输入与最大径垂直的短径">
      <span>mm</span>
    </div>
  </div>

 <!-- 强化表现板块 -->
  <div class="section">
    <h3>强化表现</h3>
    <label><input type="checkbox" name="enhancement" value="动脉期高强化（APHE）" checked> 动脉期高强化（APHE）</label>
    <br>
    <label><input type="checkbox" name="enhancement" value="门脉期（与周围肝实质比较）" checked> 门脉期（与周围肝实质比较）</label>
    <br>
    <label><input type="checkbox" name="enhancement" value="肝胆期（与周围肝实质比较）" checked> 肝胆期（与周围肝实质比较）</label>
  </div>

  <!-- 动脉期高强化（APHE） -->
  <div class="section" id="apheresisSection">
    <h3>动脉期高强化（APHE）</h3>
    <label><input type="radio" name="apheresis" value="无" checked> 无</label>
    <label><input type="radio" name="apheresis" value="不确定"> 不确定</label>
    <label><input type="radio" name="apheresis" value="有"> 有</label>
  </div>

  <!-- 门脉期（与周围肝实质比较） -->
  <div class="section" id="portalSection">
    <h3>门脉期（与周围肝实质比较）</h3>
    <label><input type="radio" name="portal" value="高强化" checked> 高强化</label>
    <label><input type="radio" name="portal" value="等强化"> 等强化</label>
    <label><input type="radio" name="portal" value="低强化"> 低强化</label>
  </div>

  <!-- 肝胆期（与周围肝实质比较） -->
  <div class="section" id="hepatobiliarySection">
    <h3>肝胆期（与周围肝实质比较）</h3>
    <label><input type="radio" name="hepatobiliary" value="高强化" checked> 高强化</label>
    <label><input type="radio" name="hepatobiliary" value="等强化"> 等强化</label>
    <label><input type="radio" name="hepatobiliary" value="低强化"> 低强化</label>
  </div>

</body>
</html>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>存活的辅助征象</title>
  <style>
    body { font-family: Arial, sans-serif; margin: 20px; }
    .section { margin-bottom: 20px; }
    .section label { display: block; margin-top: 10px; }
  </style>
</head>
<body>
  <h2>存活的辅助征象</h2>

  <!-- 弥散受限 -->
  <div class="section">
    <h3>弥散受限</h3>
    <label><input type="radio" name="diffusionRestriction" value="无"> 无</label>
    <label><input type="radio" name="diffusionRestriction" value="不确定"> 不确定</label>
    <label><input type="radio" name="diffusionRestriction" value="有"> 有</label>
  </div>

  <!-- 轻中度T2WI高信号 -->
  <div class="section">
    <h3>轻中度T2WI高信号</h3>
    <label><input type="radio" name="t2wiHighSignal" value="无"> 无</label>
    <label><input type="radio" name="t2wiHighSignal" value="不确定"> 不确定</label>
    <label><input type="radio" name="t2wiHighSignal" value="有"> 有</label>
  </div>

</body>
</html>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>其他征象</title>
  <style>
    body { font-family: Arial, sans-serif; margin: 20px; }
    .section { margin-bottom: 20px; }
    .section label { display: block; margin-top: 10px; }
    .input-wrapper { display: flex; align-items: center; }
    .input-wrapper input { width: 100px; }
    .input-wrapper span { margin-left: 5px; }
  </style>
</head>
<body>
  <h2>其他征象</h2>

  <!-- 病灶内坏死占比 -->
  <div class="section">
    <h3>病灶内坏死占比</h3>
    <label><input type="radio" name="necrosis" value="<10%"> &lt;10%</label>
    <label><input type="radio" name="necrosis" value="10%~50%"> 10%~50%</label>
    <label><input type="radio" name="necrosis" value="50%~100%"> 50%~100%</label>
    <label><input type="radio" name="necrosis" value="100%"> 100%</label>
  </div>

  <!-- 血管侵犯情况 -->
  <div class="section">
    <h3>血管侵犯情况</h3>
    <label><input type="radio" name="vascularInvasion" value="无" onclick="toggleVascularInvasionDetail(false)"> 无</label>
    <label><input type="radio" name="vascularInvasion" value="不确定" onclick="toggleVascularInvasionDetail(false)"> 不确定</label>
    <label><input type="radio" name="vascularInvasion" value="有" onclick="toggleVascularInvasionDetail(true)"> 有</label>
    <div id="vascularInvasionDetail" style="display:none;">
      <label for="vascularInvasionLocation">累及部位：</label>
      <input type="text" id="vascularInvasionLocation" name="vascularInvasionLocation" placeholder="请输入累及部位">
    </div>
  </div>

  <!-- 胆管侵犯情况 -->
  <div class="section">
    <h3>胆管侵犯情况</h3>
    <label><input type="radio" name="bileDuctInvasion" value="无" onclick="toggleBileDuctInvasionDetail(false)"> 无</label>
    <label><input type="radio" name="bileDuctInvasion" value="不确定" onclick="toggleBileDuctInvasionDetail(false)"> 不确定</label>
    <label><input type="radio" name="bileDuctInvasion" value="有" onclick="toggleBileDuctInvasionDetail(true)"> 有</label>
    <div id="bileDuctInvasionDetail" style="display:none;">
      <label for="bileDuctInvasionLocation">累及部位：</label>
      <input type="text" id="bileDuctInvasionLocation" name="bileDuctInvasionLocation" placeholder="请输入累及部位">
    </div>
  </div>

  <!-- 卫星灶 -->
  <div class="section">
    <h3>卫星灶（主瘤同一肝叶2cm内小病灶）</h3>
    <label><input type="radio" name="satelliteLesion" value="无"> 无</label>
    <label><input type="radio" name="satelliteLesion" value="不确定"> 不确定</label>
    <label><input type="radio" name="satelliteLesion" value="有"> 有</label>
  </div>

  <script>
    // 控制血管侵犯情况的累及部位输入框的显示与隐藏
    function toggleVascularInvasionDetail(show) {
      document.getElementById('vascularInvasionDetail').style.display = show ? 'block' : 'none';
    }

    // 控制胆管侵犯情况的累及部位输入框的显示与隐藏
    function toggleBileDuctInvasionDetail(show) {
      document.getElementById('bileDuctInvasionDetail').style.display = show ? 'block' : 'none';
    }
  </script>
</body>
</html>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <title>新发病灶</title>
  <style>
    body { font-family: Arial, sans-serif; margin: 20px; }
    .section { margin-bottom: 20px; }
    .section label { display: block; margin-top: 10px; }
    .input-wrapper { display: flex; align-items: center; margin-bottom: 10px; }
    .input-wrapper input { width: 100px; margin-left: 5px; }
    textarea { width: 100%; height: 80px; margin-top: 10px; }
  </style>
</head>
<body>
  <h2>新发病灶</h2>

  <!-- 新发病灶选择 -->
  <div class="section">
    <h3>新发病灶</h3>
    <label><input type="radio" name="newLesion" value="无"> 无</label>
    <label><input type="radio" name="newLesion" value="不确定"> 不确定</label>
    <label><input type="radio" name="newLesion" value="有" checked> 有</label>
  </div>

  <!-- 病灶详细信息 -->
  <div class="section" id="lesionDetails">
    <h3>病灶详细信息</h3>
    
    <!-- 位置 -->
    <div class="section">
      <h4>位置</h4>
      <label><input type="checkbox" name="location" value="S1"> S1</label>
      <label><input type="checkbox" name="location" value="S2"> S2</label>
      <label><input type="checkbox" name="location" value="S3"> S3</label>
      <label><input type="checkbox" name="location" value="S4"> S4</label>
      <label><input type="checkbox" name="location" value="S5"> S5</label>
      <label><input type="checkbox" name="location" value="S6"> S6</label>
      <label><input type="checkbox" name="location" value="S7"> S7</label>
      <label><input type="checkbox" name="location" value="S8"> S8</label>
      <br>
      <label for="locationSE">SE值：</label>
      <input type="text" id="locationSE" name="locationSE" placeholder="请输入SE值">
      <br>
      <label for="locationIM">IM值：</label>
      <input type="text" id="locationIM" name="locationIM" placeholder="请输入IM值">
    </div>

    <!-- 数量 -->
    <div class="section">
      <h4>数量</h4>
      <label><input type="radio" name="quantity" value="单发"> 单发</label>
      <label><input type="radio" name="quantity" value="多发"> 多发</label>
      <div id="quantityDetail">
        <label for="numberOfLesions">数量：</label>
        <input type="number" id="numberOfLesions" name="numberOfLesions" placeholder="请输入数量">
        <br>
        <label for="largestLesionLocation">最大者位置：</label>
        <select id="largestLesionLocation" name="largestLesionLocation">
          <option value="S1">S1</option>
          <option value="S2">S2</option>
          <option value="S3">S3</option>
          <option value="S4">S4</option>
          <option value="S5">S5</option>
          <option value="S6">S6</option>
          <option value="S7">S7</option>
          <option value="S8">S8</option>
        </select>
        <br>
        <label for="largestLesionSE">SE值：</label>
        <input type="text" id="largestLesionSE" name="largestLesionSE" placeholder="请输入SE值">
        <br>
        <label for="largestLesionIM">IM值：</label>
        <input type="text" id="largestLesionIM" name="largestLesionIM" placeholder="请输入IM值">
      </div>
    </div>

    <!-- 大小 -->
    <div class="section">
      <h4>大小</h4>
      <div class="input-wrapper">
        <label for="lesionSize">最大直径：</label>
        <input type="number" id="lesionSize" name="lesionSize" step="0.1" placeholder="请输入最大直径">
        <span>mm</span>
      </div>
      <div class="input-wrapper">
        <label for="lesionDimensions">左右径×前后径×上下径：</label>
        <input type="number" id="lesionWidth" name="lesionWidth" step="0.1" placeholder="左右径">
        <span>mm</span>
        <input type="number" id="lesionDepth" name="lesionDepth" step="0.1" placeholder="前后径">
        <span>mm</span>
        <input type="number" id="lesionHeight" name="lesionHeight" step="0.1" placeholder="上下径">
        <span>mm</span>
      </div>
    </div>

    <!-- 强化表现 -->
    <div class="section">
      <h4>强化表现</h4>
      <!-- 动脉期 -->
      <div class="section">
        <h5>动脉期</h5>
        <label><input type="radio" name="arterialPhase" value="高强化"> 高强化</label>
        <label><input type="radio" name="arterialPhase" value="等强化"> 等强化</label>
        <label><input type="radio" name="arterialPhase" value="低强化"> 低强化</label>
        <label><input type="radio" name="arterialPhase" value="其他强化"> 其他强化</label>
        <div id="arterialOther">
          <label for="arterialOtherText">其他描述：</label>
          <input type="text" id="arterialOtherText" name="arterialOtherText" placeholder="请输入描述">
        </div>
      </div>
      <!-- 门脉期 -->
      <div class="section">
        <h5>门脉期</h5>
        <label><input type="radio" name="portalPhase" value="高强化"> 高强化</label>
        <label><input type="radio" name="portalPhase" value="等强化"> 等强化</label>
        <label><input type="radio" name="portalPhase" value="低强化"> 低强化</label>
        <label><input type="radio" name="portalPhase" value="其他强化"> 其他强化</label>
        <div id="portalOther">
          <label for="portalOtherText">其他描述：</label>
          <input type="text" id="portalOtherText" name="portalOtherText" placeholder="请输入描述">
        </div>
      </div>
      <!-- 肝胆期 -->
      <div class="section">
        <h5>肝胆期</h5>
        <label><input type="radio" name="hepatobiliaryPhase" value="高强化"> 高强化</label>
        <label><input type="radio" name="hepatobiliaryPhase" value="等强化"> 等强化</label>
        <label><input type="radio" name="hepatobiliaryPhase" value="低强化"> 低强化</label>
        <label><input type="radio" name="hepatobiliaryPhase" value="其他强化"> 其他强化</label>
        <div id="hepatobiliaryOther">
          <label for="hepatobiliaryOtherText">其他描述：</label>
          <input type="text" id="hepatobiliaryOtherText" name="hepatobiliaryOtherText" placeholder="请输入描述">
        </div>
      </div>
      <!-- 强化特征 -->
      <div class="section">
        <h5>强化特征</h5>
        <label><input type="radio" name="enhancementFeature" value="环状强化"> 环状强化</label>
        <label><input type="radio" name="enhancementFeature" value="快进快出强化"> 快进快出强化</label>
        <label><input type="radio" name="enhancementFeature" value="靶样强化"> 靶样强化</label>
        <label><input type="radio" name="enhancementFeature" value="其他强化特征"> 其他强化特征</label>
        <div id="enhancementFeatureOther">
          <label for="enhancementFeatureOtherText">其他描述：</label>
          <input type="text" id="enhancementFeatureOtherText" name="enhancementFeatureOtherText" placeholder="请输入描述">
        </div>
      </div>
    </div>

    <!-- 补充描述 -->
    <div class="section">
      <h4>补充描述</h4>
      <textarea id="additionalDescription" name="additionalDescription" placeholder="请输入补充描述"></textarea>
    </div>
  </div>
   <!-- 其他治疗改变 -->
  <div class="section" id="treatmentChangeSection">
    <h3>其他治疗改变</h3>
    <textarea id="treatmentChange" name="treatmentChange" placeholder="请输入其他治疗改变"></textarea>
  </div>

  <!-- LI-RADS-TRA分类 -->
  <div class="section" id="liRadsSection">
    <h3>LI-RADS-TRA分类</h3>
    <label><input type="radio" name="liRads" value="LR-TR Nonevaluable"> 治疗反应无法评估（LR-TR Nonevaluable）</label>
    <label><input type="radio" name="liRads" value="LR-TP Nonviable"> 治疗后无肿瘤存活（LR-TP Nonviable）</label>
    <label><input type="radio" name="liRads" value="LR-TR Equivocal"> 治疗反应不确定（LR-TR Equivocal）</label>
    <label><input type="radio" name="liRads" value="LR-TR Nonprogressing"> 治疗后无进展（LR-TR Nonprogressing）</label>
    <label><input type="radio" name="liRads" value="LR-TR Viable"> 治疗后肿瘤存活（LR-TR Viable）</label>
    <div id="nonevaluableReasons">
      <h4>潜在原因</h4>
      <label><input type="checkbox" name="nonevaluableReason" value="运动或其他伪影"> 运动或其他伪影</label>
      <label><input type="checkbox" name="nonevaluableReason" value="缺少一个或多个必要的对比增强相位"> 缺少一个或多个必要的对比增强相位</label>
      <label><input type="checkbox" name="nonevaluableReason" value="对比剂注射失败"> 对比剂注射失败</label>
      <label><input type="checkbox" name="nonevaluableReason" value="动脉相位定时错误（过早或过晚）"> 动脉相位定时错误（过早或过晚）</label>
    </div>
  </div>

  <!-- 随访对比 -->
  <div class="section" id="followUpSection">
    <h3>随访对比</h3>
    <label><input type="radio" name="followUp" value="有"> 有前片对比</label>
    <label><input type="radio" name="followUp" value="无"> 无前片对比</label>
    <div id="followUpDetail">
      <label for="followUpDate">日期：</label>
      <input type="date" id="followUpDate" name="followUpDate">
      <br>
      <label for="followUpResult">对比结果：</label>
      <textarea id="followUpResult" name="followUpResult" placeholder="请输入对比结果"></textarea>
    </div>
  </div>
</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>门静脉瘤栓</title>
  <style>
    body { font-family: Arial, sans-serif; margin: 20px; }
    .section { margin-bottom: 20px; }
    .section label { display: block; margin-top: 10px; }
    .subsection { margin-left: 20px; margin-top: 10px; }
  </style>
</head>
<body>
  <h2>门静脉瘤栓</h2>
  <!-- 门静脉瘤栓主选项：无/有 -->
  <div class="section">
    <label>
      <input type="radio" name="portalTumorThrombus" value="无" onclick="toggleMainDetails(false)">
      无
    </label>
    <label>
      <input type="radio" name="portalTumorThrombus" value="有" onclick="toggleMainDetails(true)">
      有
    </label>
  </div>

  <!-- 若选择“有”，显示以下详细内容 -->
  <div class="section" id="mainDetails" style="display:none;">
    <h3>请选择详细内容（可多选）：</h3>
    <label>
      <input type="checkbox" id="vpCheckbox" onchange="toggleVPDetails(this.checked)">
      Vp分型
    </label>
    <label>
      <input type="checkbox" id="chengCheckbox" onchange="toggleChengDetails(this.checked)">
      程氏分型
    </label>
    <label>
      <input type="checkbox" id="descCheckbox" onchange="toggleDescDetail(this.checked)">
      补充描述
    </label>

    <!-- Vp分型详细内容 -->
    <div class="subsection" id="vpDetails" style="display:none;">
      <h4>Vp分型</h4>
      <label>
        <input type="radio" name="vpType" value="Vp1">
        Vp1：门静脉第二级分支远端，不累及第二级分支
      </label>
      <label>
        <input type="radio" name="vpType" value="Vp2">
        Vp2：门静脉第二级分支
      </label>
      <label>
        <input type="radio" name="vpType" value="Vp3">
        Vp3：门静脉左右分支
      </label>
      <label>
        <input type="radio" name="vpType" value="Vp4">
        Vp4：门静脉主干及以上
      </label>
    </div>

    <!-- 程氏分型详细内容 -->
    <div class="subsection" id="chengDetails" style="display:none;">
      <h4>程氏分型</h4>
      <label>
        <input type="radio" name="chengType" value="Ⅰ型">
        Ⅰ型：肝叶或肝段的门静脉分支
      </label>
      <label>
        <input type="radio" name="chengType" value="Ⅱ型">
        Ⅱ型：门静脉左支或右支
      </label>
      <label>
        <input type="radio" name="chengType" value="Ⅲ型">
        Ⅲ型：门静脉主干
      </label>
      <label>
        <input type="radio" name="chengType" value="IV型">
        IV型：肠系膜上静脉
      </label>
    </div>

    <!-- 补充描述 -->
    <div class="subsection" id="descDetail" style="display:none;">
      <h4>补充描述</h4>
      <textarea id="additionalDesc" placeholder="请输入补充描述"></textarea>
    </div>
  </div>

  <script>
    // 控制门静脉瘤栓详细内容的显示与隐藏
    function toggleMainDetails(show) {
      document.getElementById('mainDetails').style.display = show ? 'block' : 'none';
      if (!show) {
        // 隐藏所有子部分，并取消选中
        document.getElementById('vpDetails').style.display = 'none';
        document.getElementById('chengDetails').style.display = 'none';
        document.getElementById('descDetail').style.display = 'none';
        document.getElementById('vpCheckbox').checked = false;
        document.getElementById('chengCheckbox').checked = false;
        document.getElementById('descCheckbox').checked = false;
      }
    }

    // 控制 Vp分型详细内容的显示与隐藏
    function toggleVPDetails(show) {
      document.getElementById('vpDetails').style.display = show ? 'block' : 'none';
    }

    // 控制 程氏分型详细内容的显示与隐藏
    function toggleChengDetails(show) {
      document.getElementById('chengDetails').style.display = show ? 'block' : 'none';
    }

    // 控制 补充描述详细内容的显示与隐藏
    function toggleDescDetail(show) {
      document.getElementById('descDetail').style.display = show ? 'block' : 'none';
    }
  </script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>区域淋巴结转移</title>
  <style>
    body { font-family: Arial, sans-serif; margin: 20px; }
    .section { margin-bottom: 20px; }
    .section label { display: block; margin-top: 10px; }
    .input-wrapper { display: flex; align-items: center; margin-bottom: 10px; }
    .input-wrapper input { width: 100px; margin-left: 5px; }
    textarea { width: 100%; height: 80px; margin-top: 10px; }
  </style>
</head>
<body>
  <h2>区域淋巴结转移</h2>

  <!-- 无/有 -->
  <div class="section">
    <h3>区域淋巴结转移</h3>
    <label><input type="radio" name="lymphNodeMetastasis" value="无" onclick="toggleSections(false)"> 无</label>
    <label><input type="radio" name="lymphNodeMetastasis" value="有" onclick="toggleSections(true)"> 有</label>
  </div>

  <!-- 淋巴结转移详细信息 -->
  <div id="lymphNodeDetails" style="display:none;">
    <!-- 序号 -->
    <div class="section">
      <label for="lymphNodeNumber">淋巴结转移序号：</label>
      <input type="text" id="lymphNodeNumber" name="lymphNodeNumber" placeholder="请输入序号">
    </div>

    <!-- 位置 -->
    <div class="section">
      <label>位置：</label>
      <label><input type="checkbox" name="location" value="肝门淋巴结"> 肝门淋巴结</label>
      <label><input type="checkbox" name="location" value="肝十二指肠韧带淋巴结"> 肝十二指肠韧带淋巴结</label>
      <label><input type="checkbox" name="location" value="膈下淋巴结"> 膈下淋巴结</label>
      <label><input type="checkbox" name="location" value="肝动脉旁淋巴结"> 肝动脉旁淋巴结</label>
      <label><input type="checkbox" name="location" value="门静脉旁淋巴结"> 门静脉旁淋巴结</label>
      <label><input type="checkbox" name="location" value="下腔静脉旁淋巴结"> 下腔静脉旁淋巴结</label>
    </div>

    <!-- 数量 -->
    <div class="section">
      <label>数量：</label>
      <label><input type="radio" name="quantity" value="单发" onclick="toggleQuantityDetail(false)"> 单发</label>
      <label><input type="radio" name="quantity" value="多发" onclick="toggleQuantityDetail(true)"> 多发</label>
      <div id="quantityDetail" style="display:none;">
        <label for="numberOfNodes">数量：</label>
        <input type="number" id="numberOfNodes" name="numberOfNodes" placeholder="请输入数量">
      </div>
    </div>

    <!-- 最大者位置 -->
    <div class="section">
      <label for="largestNodeLocation">最大者位置：</label>
      <input type="text" id="largestNodeLocation" name="largestNodeLocation" placeholder="请输入位置">
    </div>

    <!-- 最大者短径 -->
    <div class="section">
      <label for="largestNodeShortAxis">（最大者）短径（cm）：</label>
      <input type="number" id="largestNodeShortAxis" name="largestNodeShortAxis" step="0.1" placeholder="请输入短径">
    </div>

    <!-- 性质 -->
    <div class="section">
      <label>性质：</label>
      <label><input type="radio" name="nature" value="淋巴结转移"> 淋巴结转移</label>
      <label><input type="radio" name="nature" value="转移可能大"> 转移可能大</label>
      <label><input type="radio" name="nature" value="不除外转移"> 不除外转移</label>
    </div>

    <!-- 变化趋势 -->
    <div class="section">
      <label>变化趋势：</label>
      <label><input type="radio" name="trend" value="增大"> 增大</label>
      <label><input type="radio" name="trend" value="相仿"> 相仿</label>
      <label><input type="radio" name="trend" value="缩小"> 缩小</label>
    </div>

    <!-- 建议 -->
    <div class="section">
      <label>建议：</label>
      <label><input type="radio" name="recommendation" value="请追随"> 请追随</label>
      <label><input type="radio" name="recommendation" value="其他"> 其他</label>
      <div id="otherRecommendation" style="display:none;">
        <label for="otherRecommendationText">其他描述：</label>
        <textarea id="otherRecommendationText" name="otherRecommendationText" placeholder="请输入描述"></textarea>
      </div>
    </div>
  </div>

  <script>
    // 控制区域淋巴结转移相关部分的显示/隐藏
    function toggleSections(show) {
      document.getElementById('lymphNodeDetails').style.display = show ? 'block' : 'none';
    }

    // 控制数量详细信息的显示/隐藏
    function toggleQuantityDetail(show) {
      document.getElementById('quantityDetail').style.display = show ? 'block' : 'none';
    }

    // 控制建议中“其他”描述的显示/隐藏
    document.querySelectorAll('input[name="recommendation"]').forEach(radio => {
      radio.addEventListener('change', function() {
        document.getElementById('otherRecommendation').style.display = this.value === '其他' ? 'block' : 'none';
      });
    });
  </script>
</body>
</html>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <title>病历表单</title>
  <style>
    body { font-family: Arial, sans-serif; margin: 20px; }
    .section { margin-bottom: 20px; }
    .section label { display: block; margin-top: 10px; }
    .input-wrapper { display: flex; align-items: center; margin-bottom: 10px; }
    .input-wrapper input { width: 100px; margin-left: 5px; }
    textarea { width: 100%; height: 80px; margin-top: 10px; }
  </style>
</head>
<body>
  <!-- 远处转移 -->
  <div class="section">
    <h3>远处转移</h3>
    <label><input type="radio" name="distantMetastasis" value="未见" onclick="toggleDistantMetastasisDetail(false)"> 未见</label>
    <label><input type="radio" name="distantMetastasis" value="可见" onclick="toggleDistantMetastasisDetail(true)"> 可见</label>
    <div id="distantMetastasisDetail" style="display:none;">
      <label for="distantMetastasisDescription">描述：</label>
      <textarea id="distantMetastasisDescription" name="distantMetastasisDescription" placeholder="请输入描述"></textarea>
    </div>
  </div>

  <!-- 肝脏其他病变 -->
  <div class="section">
    <h3>肝脏其他病变</h3>
    <textarea id="liverOtherLesions" name="liverOtherLesions" placeholder="请输入肝脏其他病变描述"></textarea>
  </div>

  <!-- 肝脏体积 -->
  <div class="section">
    <h3>肝脏体积</h3>
    <div class="input-wrapper">
      <label for="liverVolume">全肝：</label>
      <input type="number" id="liverVolume" name="liverVolume" step="0.1" placeholder="请输入体积">
      <span>cm³</span>
    </div>
    <div class="input-wrapper">
      <label for="leftLobeVolume">左叶：</label>
      <input type="number" id="leftLobeVolume" name="leftLobeVolume" step="0.1" placeholder="请输入体积">
      <span>cm³</span>
    </div>
    <div class="input-wrapper">
      <label for="rightLobeVolume">右叶：</label>
      <input type="number" id="rightLobeVolume" name="rightLobeVolume" step="0.1" placeholder="请输入体积">
      <span>cm³</span>
    </div>
    <div class="input-wrapper">
      <label for="caudateLobeVolume">尾状叶：</label>
      <input type="number" id="caudateLobeVolume" name="caudateLobeVolume" step="0.1" placeholder="请输入体积">
      <span>cm³</span>
    </div>
  </div>

  <!-- 补充表现 -->
  <div class="section">
    <h3>补充表现</h3>
    <textarea id="additionalFindings" name="additionalFindings" placeholder="请输入补充表现"></textarea>
  </div>

  <!-- 诊断前缀词 -->
  <div class="section">
    <h3>诊断前缀词</h3>
    <textarea id="diagnosisPrefix" name="diagnosisPrefix" placeholder="请输入诊断前缀词">上腹部MR平扫+增强示：</textarea>
  </div>

  <!-- 补充诊断 -->
  <div class="section">
    <h3>补充诊断</h3>
    <textarea id="additionalDiagnosis" name="additionalDiagnosis" placeholder="请输入补充诊断"></textarea>
  </div>

  <!-- 建议 -->
  <div class="section">
    <h3>建议</h3>
    <textarea id="recommendations" name="recommendations" placeholder="请输入建议"></textarea>
  </div>

  <script>
    // 控制远处转移描述的显示/隐藏
    function toggleDistantMetastasisDetail(show) {
      document.getElementById('distantMetastasisDetail').style.display = show ? 'block' : 'none';
    }
  </script>
</body>
</html> 